<template>
    <div class="header">
        <div class="header-left"><i class="iconfont">&#xe600;</i></div>
        <div class="header-input">
            <i class="iconfont">&#xe62f;</i>
            输入城市/景点/游玩主题
        </div>
        <router-link to="/citylist" tag="div" class="header-right">
            {{this.$store.state.city}}
            <i class="iconfont">&#xeb6d;</i>
        </router-link>
    </div>
</template>

<script>
export default {
    name:'HomeHeader',
}
</script>

<style scoped lang="less">
.header {
    width: 100%;
    padding: 0 .3rem;
    box-sizing: border-box;
    height: .88rem;
    background-color: #00bcd4;
    line-height: .88rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: .28rem;
    .header-input{
        flex: 1;
        line-height: .65rem;
        border-radius: .1rem;
        background: #fff;
        color: rgb(109, 105, 105);
        padding-left: .2rem;
        margin: 0 .2rem;
    }
    i{
        font-size: .28rem;
    }
}
</style>